// class Foo{
//     constructor(name) {
//         this.name = name
//     }
//     age = 18
//     say() {
//         return 'heloo'
//     }
//     static run() {
//         console.log('running');
//     }
// }

// let foo = new Foo('kiimm')
// console.log(foo.say());


class Parent {
    constructor(name) {
        this.name= name
    }
}

class Child extends Parent {
    constructor(age, b) {
        super(b)
        this.age = age
    }
}

let cc = new Child(18, 'pare')
console.log(cc);


function Person(name) {
    this.name='pick'
}
Person.prototype.like='swim'

let person1 = new Person()
person1.like='run'
console.log(person1, Object);
